package com.svms.service.vo;

import java.io.Serializable;

/**
 * @author om39a
 * 
 */
public class TransportVO implements Serializable {
	public String transportId;
	public AddressVO transportAddress;
	public String companyName;

	public String getTransportId() {
		return transportId;
	}

	public void setTransportId(String transportId) {
		this.transportId = transportId;
	}

	public AddressVO getTransportAddress() {
		return transportAddress;
	}

	public void setTransportAddress(AddressVO transportAddress) {
		this.transportAddress = transportAddress;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((companyName == null) ? 0 : companyName.hashCode());
		result = prime
				* result
				+ ((transportAddress == null) ? 0 : transportAddress.hashCode());
		result = prime * result
				+ ((transportId == null) ? 0 : transportId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TransportVO other = (TransportVO) obj;
		if (companyName == null) {
			if (other.companyName != null)
				return false;
		} else if (!companyName.equals(other.companyName))
			return false;
		if (transportAddress == null) {
			if (other.transportAddress != null)
				return false;
		} else if (!transportAddress.equals(other.transportAddress))
			return false;
		if (transportId == null) {
			if (other.transportId != null)
				return false;
		} else if (!transportId.equals(other.transportId))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "TransportVO [transportId=" + transportId
				+ ", transportAddress=" + transportAddress + ", companyName="
				+ companyName + "]";
	}

}
